package com.iurac.dao;

import com.iurac.domain.BorrowHistory;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface BorrowHistoryDao {

    List<BorrowHistory> getBorrowHistoryByCondition(@Param("title") String title, @Param("username")  String username,
                                                    @Param("userId")  String userId, @Param("startDate")  String startDate,
                                                    @Param("endDate") String endDate);

    int deleteBorrowHistoryById(@Param("id") String id);

    int saveBorrowHistory(BorrowHistory borrowHistory);
}
